<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<div class="block search_form">
<form action="/search/articles.htm" id="searchform" method="get">
	<div class="form">
		<input type="text" class="inputbox" value="Search Blog..." onclick="if (this.value=='Search Blog...') this.value=''" onfocus="this.value=''" onblur="if (this.value =='') this.value='Search Blog...'" id="s" name="keyword" gtbfieldid="5">
		<span>
		<input type="submit" class="go" value="" id="button" name="button">
		</span>
	</div>
</form>       

<form action="/person/blog/add.htm" id="searchform" method="get">
	<div class="form">
		<input type="text" class="inputbox" value="your.blog.com" onclick="if (this.value=='your.blog.com') this.value=''" onfocus="this.value=''" onblur="if (this.value =='') this.value='your.blog.com'" id="s" name="blogUrl" gtbfieldid="5">
		<span>
		<input type="submit" class="join" value="加入" id="button" name="button">
		</span>
	</div>
</form>       

</div>

<!--  
<div class="searchbox">
<c:choose>
	<c:when test="${not empty searchwhat && searchwhat == 'article'}">
		<form action="/search/articles.htm" id="site-search-box" method="post">
		  <div>
		    <input type="text" name="keyword" id="keyword" size="40" value="${keyword}"/>
		    <input type="submit" name="sa" value="博文搜索" />
		  </div>
		</form>		
	</c:when>
	<c:otherwise>
		<form action="/search/products.htm" id="site-search-box" method="post">
		  <div>
		    <input type="text" name="keyword" id="keyword" size="40" value="${keyword}"/>
		    <input type="submit" name="sa" value="产品搜索" />
		  </div>
		</form>		
	</c:otherwise>
</c:choose>	

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
  google.load('search', '1');
  google.setOnLoadCallback(function() {
    google.search.CustomSearchControl.attachAutoCompletion(
      '013115384976007314543:iklbrpxf1ym',
      document.getElementById('q'),
      'cse-search-box');
  });
</script>
<form action="/search/googlesearch.htm " id="cse-search-box">
  <div>
    <input type="hidden" name="cx" value="013115384976007314543:iklbrpxf1ym" />
    <input type="hidden" name="cof" value="FORID:10" />
    <input type="hidden" name="ie" value="UTF-8" />
    <input type="text" name="q" id="q" autocomplete="off" size="40" />
    <input type="submit" name="sa" value="谷歌搜索" />
  </div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=zh-Hans"></script>

</div>
 </div>
 
 -->